
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Bootstrap 实例 - 基本表单</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

<form role="form" action="{{url('/gameEditor')}}"  method="post" style="margin: 20px 20px;width: 500px" enctype="multipart/form-data">
    {{csrf_field()}}
    <div class="form-group">
        <label for="name"><h4>Game Name</h4></label>
        <input type="hidden" name="id" value="{{$data->id}}">
        游戏名称: <input type="text" class="form-control" name="name" value="{{$data->name}}"
                     placeholder="请输入游戏名称"><br>
        <label for="name"><h4>Game Type</h4></label>
        游戏类型:
        <select  name="type">
            @foreach($types as $t)
                <option @if($t->id==$data->type) selected  @endif value="{{$t->id}}">{{$t->name}}</option>
            @endforeach
        </select>
    </div>
    <div class="form-group">
        <label for="inputfile">输入游戏文件</label>
        <input type="file" name="img">

    </div>
    <button type="submit" class="btn btn-default">提交</button>
</form>

</body>
</html>
